package Observer.Simple;

public class Client {
    public static void main(String[] args) {
        AbstractSubject subject = new ConcreteSubjectB();
        IObserver obs1 = new ConcreteObserver1();
        IObserver obs2 = new ConcreteObserver2();
        subject.add(obs1);
        subject.add(obs2);
        subject.notifyObserver();
    }
}
